import { Component } from '@angular/core';

import { NavController, AlertController, Platform, ModalController } from 'ionic-angular';
import { Storage } from '@ionic/storage';
import { SettingNoteService } from './note.service';
import { Config } from '../../../providers/config';

import { Common } from '../../../providers/common';

@Component({
	selector: 'page-setting-note',
	templateUrl: 'note.html',
	providers: [SettingNoteService]
})
export class SettingNotePage {
	moa_page_name: any = "page-setting-note";
  moa_page_explain: any = "版本说明";

	version = {};
	type = "test";
	year = new Date().getFullYear();

	constructor(
		public nav: NavController,
		public setttingNoteService: SettingNoteService,
		public alertCtrl: AlertController,
		public platform: Platform,
		public config: Config,
		public modalCtrl: ModalController,
		public common: Common,
		public storage: Storage
	) {
		this.init();
	}
	init() {
		if (this.config.isProduct) {
			this.type = 'release';
		}
		this.common.getVersionInfo().then((version) => {
			this.version = version;
		})
	}
}
